<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>基本资料</title>
    <div th:include="common :: css"></div>
    <style>
        .layui-form-item .layui-input-company {width: auto;padding-right: 10px;line-height: 38px;}
    </style>
</head>
<body>
<!--<form id="myForm" class="layui-form" method="post">-->
<div class="layuimini-container">
    <div class="layuimini-main">

        <div class="layui-form layuimini-form">

            <div class="layui-form-item">
                <label class="layui-form-label">管理账号：</label>
                <div class="layui-input-block">
                    <input  type="text" style="border:none;" name="account" readonly="readonly" lay-verify="required" lay-reqtext="管理账号不能为空" placeholder="请输入管理账号"  th:value="*{bean.account}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">手机：</label>
                <div class="layui-input-block">
                    <input  type="text" style="border:none;" name="mobile" readonly="readonly" lay-verify="required" lay-reqtext="手机不能为空" placeholder="请输入手机"  th:value="*{bean.mobile}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮箱：</label>
                <div class="layui-input-block">
                    <input  type="email" style="border:none;" name="email" readonly="readonly" lay-verify="required" lay-reqtext="邮箱不能为空" placeholder="请输入邮箱"  th:value="*{bean.email}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">注册时间：</label>
                <div class="layui-input-block">
                    <input  type="text" style="border:none;" name="regDate" readonly="readonly" th:value="${#dates.format(bean.regDate, 'yyyy-MM-dd HH:mm:ss')}" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">最后一次登录：</label>
                <div class="layui-input-block">
                    <input  type="text" style="border:none;" name="lastLoginDate" readonly="readonly" th:value="${#dates.format(bean.lastLoginDate, 'yyyy-MM-dd HH:mm:ss')}" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="saveBtn">退出</button>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="common :: js"></div>
<script>
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;

        //监听提交
        form.on('submit(saveBtn)', function (data) {
                // 关闭弹出层
                layer.close();
                var iframeIndex = parent.layer.getFrameIndex(window.name);
                parent.layer.close(iframeIndex);
            return false;
        });

    });
</script>
</body>
</html>